#ifndef GAUSSSEIDELSOLVER_H
#define GAUSSSEIDELSOLVER_H
#include <iostream>
#include <QVector>
#include "basegaussseidelsolver.h"

class GaussSeidelSolver : public BaseGaussSeidelSolver
{
    Q_OBJECT
protected:
    const double t;

    double iteration();



    void calculateCoefficients();

public:
    GaussSeidelSolver(int _n, double mu1=0.3, double e1=2.1e6, QObject * parent = 0);
    virtual ~GaussSeidelSolver();

//    virtual int solve();

    void showGraph();
    double updateLagrange(double ro);

};

#endif // GAUSSSEIDELSOLVER_H
